
{% extends TEMPLATE_BASE %}

{% block title %}Ballot Tracking Center for {{election.name}}{% endblock %}

{% block content %}
  <h2 class="title">{{election.name}} &mdash; 选票追踪中心 <span style="font-size:0.7em;">[<a href="{% url "election@view" election_uuid=election.uuid %}">返回选举详情</a>]</span></h2>

<p>
  这是选票追踪中心，显示本次选举中所有投票的追踪号码。
  </p>

<p>
  <b>{{election.num_cast_votes}}</b> 投票.
</p>

投票人 {{offset_plus_one}} - {{offset_plus_limit}} &nbsp;&nbsp;

{% if next_after %}
<a href="{% url "election@bboard" election.uuid %}?after={{next_after}}&offset={{offset_plus_limit}}">> {{limit}}</a> &nbsp;&nbsp;
{% endif %}

{% ifequal offset 0 %}
{% else %}
<a href="{% url "election@bboard" election.uuid %}">返回开始页面</a> &nbsp;&nbsp;
{% endifequal %}
{% if more_p %}
<a href="{% url "election@bboard" election.uuid %}?after={{next_after}}&offset={{next_offset}}">> {{limit}}</a>
{% endif %}
<table class="pretty">
<tr><th>
{% if election.use_voter_aliases %}
别名
{% else %}
名字
{% endif %}
</th><th>智能选票追踪器</th></tr>
{% for voter in voters %}
<tr><td>
{% if election.use_voter_aliases %}
{{voter.alias}}
{% else %}
<img border="0" height="20" src="/static/auth/login-icons/{{voter.voter_type}}.png" alt="{{voter.voter_type}}" /> {% if voter.name %}{{voter.name}}{% else %}{{voter.voter_id}}{% endif %}
{% endif %}</td><td><tt style="font-size: 1.4em;;">{% if voter.vote_hash %}{{voter.vote_hash}} <span style="font-size:0.8em;">[<a href="{% url "election@ballots@voter@last" election_uuid=election.uuid voter_uuid=voter.uuid %}">查看</a>]</span>{% else %}&mdash;{% endif %}</tt></td></tr>
{% endfor %}
</table>

{% endblock %}